package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Accident;
import cn.wolfcode.crm.query.AccidentQueryObject;
import cn.wolfcode.crm.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AccidentMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Accident record);

    Accident selectByPrimaryKey(Long id);

    List<Accident> selectAll();

    int updateByPrimaryKey(Accident record);

    Integer queryForCount(QueryObject qo);

    List<Accident> queryForList(QueryObject qo);

    void handlerAccident(@Param("id") Long id, @Param("stateId") Long stateId);

    void insertLossId(@Param("id") Long id, @Param("accidentId") Long accidentId);

    Integer auditForCount(AccidentQueryObject qo);

    List<Accident> auditForList(AccidentQueryObject qo);

    void insertCaseId(Long caseId);
}